<template>
  <div class="test">
    <div class="page-content">
      <div class="img-box">
        <img :src="img"/>
      </div>
      <p class="text">{{text}}</p>
      <p class="explain">{{EnglishText}}</p>
      <slot></slot>
    </div>
  </div>
</template>

<script>
  export default {
    props: {
      img:{
        type: String,
        default: 'https://file.baojunev.com/group1/default/20190701/09/05/6/lost_signal@2x.png'
      },
      text: {
        type: String,
        default: '网络被外星人屏蔽了'
      },
      EnglishText: {
        type: String,
        default: 'Network exception,please try again later'
      },
      setting: {
        type: Boolean,
        default: false
      },
      toPage: {
        type: String,
        default: ''
      }
    },
    data() {
      return {
      }
    },
    components: {
    }
  }
</script>

<style scoped lang="less" ref="stylesheet/less">
  .test{
    position: fixed;
    top: 0;
    right:0;
    left: 0;
    bottom: 0;
    z-index: 3;
    background-color: #fff;
  }
  .page-content{
    padding:192px 64px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    .img-box{
      width: 400px;
      height: 400px;
      line-height: 400px;
      margin-bottom: 32px;
      position: relative;
      img{
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width:100%;
      }
    }
    p{
      margin:0;
      padding:0;
      text-align: center;
      letter-spacing: .01em;
      font-weight: 400;
      line-height: 40px;
    }
    .text{
      width: 328px;
      font-size: 32px;
      color: #333333;;
      margin-bottom: 32px;
    }
    .explain{
      width: 308px;
      font-size: 24px;
      color: #646464;
      margin-bottom: 32px;
      &.setting{
        margin-top: 32px;
      }
      .icon{
        font-size: 24px;
        margin-right: 16px;
      }
    }
  }

  .ripple {
    width: 440px;
    height: 80px;
    line-height: 80px;
    border-radius: 80px;
    text-align: center;
    font-size: 32px;
    color: #fff;
    background-color: #29CA82;
    overflow: hidden;
    position: relative;
    border: none;
    outline: medium;
    margin-top:25px;
    &:after {
      content: "";
      display: block;
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      pointer-events: none;
      background-image: radial-gradient(circle, #666 10%, transparent 10.01%);
      background-repeat: no-repeat;
      background-position: 50%;
      transform: scale(10, 10);
      opacity: 0;
      transition: transform .5s, opacity .5s;
    }
    &:active:after {
      transform: scale(0, 0);
      opacity: .3;
      transition: 0s;
    }
  }
</style>
